<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>流程批量审批定义设置管理-明细</title>
    <#include "/pubHeadStyle.html">
</head>
<body>
<form class="layui-form" action="" lay-filter="approvalDetail">
    <table class="table-detail">
        <tr>
            <th style="width: 16%">流程定义ID：</th>
            <td>
                <input type="text" name="modelKey" autocomplete="off" class="layui-input" readonly="readonly" style="width: 476px"/>
            </td>
        </tr>
        <tr>
            <th>节点ID：</th>
            <td>
                <input type="text" name="nodeId" autocomplete="off" class="layui-input" readonly="readonly" style="width: 476px"/>
            </td>
        </tr>
        <tr>
            <th>自定义表ID：</th>
            <td>
                <input type="text" name="tableId" autocomplete="off" class="layui-input" readonly="readonly" style="width: 476px"/>
            </td>
        </tr>
        <tr>
            <th>字段设置：</th>
            <td>
                <input type="text" name="fieldJson" autocomplete="off" class="layui-input" readonly="readonly" style="width: 476px"/>
            </td>
        </tr>
    </table>
    <div class="layui-form-item">
        <div style="text-align: center;position: absolute; bottom: 15px;width: 100%">
            <button type="reset" id="closeWindow" class="layui-btn btn-n layui-btn-danger btn-save">关闭</button>
        </div>
    </div>
</form>

<script>
    layui.config({
        base: serverPath.systemPath + staticPath.systemPath //静态资源所在路径
    }).extend({
        index: 'index' //主入口模块
    }).use(['index','setter','element','form'], function () {
        var setter = layui.setter
            , element = layui.element
            , $ = layui.$
            , form = layui.form;

        var id = '${id}';
        $.ajax({
            url: serverPath.workflowPath + setter.workflowLinkPath + "bpmBatchApproval/detail?id=" + id,
            type: "get",
            contentType: 'application/json',
            dataType: 'json',
            success: function (data) {
                var returnData = data.data;
                form.val('approvalDetail',{
                    'modelKey':returnData.modelKey,
                    'nodeId' : returnData.nodeId,
                    'tableId' :returnData.tableId,
                    'fieldJson' :returnData.fieldJson
                })
            }
        });

        $('#closeWindow').click(function () {
            parent.layer.close(parent.layer.getFrameIndex(window.name))
        })

    })
</script>
</body>
</html>